const express = require("express");
const history = require('connect-history-api-fallback')

const app = express();
app.use(history())
app.use(express.static(__dirname + '/static'))
app.get('/person', (req, res) => {
    res.send({
        name: "tom"
    })
})

app.listen(5005, (err) => {
    if (!err) console.log('服务启动成功');
})